home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / hdparm.postinst < prev    next >
Text File  |  2009-10-06  |  602b  |  19 lines

  1. #!/bin/sh
  2. set -e
  3.  
  4. if [ -n "$2" ] && dpkg --compare-versions "$2" lt 8.9-2; then
  5.   rm -fv /etc/rc0.d/K75hdparm /etc/rc6.d/K75hdparm
  6. fi
  7. # Automatically added by dh_installudev
  8. if [ "$1" = configure ]; then
  9.     if [ -e "/etc/udev/rules.d/85_hdparm.rules" ]; then
  10.         echo "Preserving user changes to /etc/udev/rules.d/85-hdparm.rules ..."
  11.         if [ -e "/etc/udev/rules.d/85-hdparm.rules" ]; then
  12.             mv -f "/etc/udev/rules.d/85-hdparm.rules" "/etc/udev/rules.d/85-hdparm.rules.dpkg-new"
  13.         fi
  14.         mv -f "/etc/udev/rules.d/85_hdparm.rules" "/etc/udev/rules.d/85-hdparm.rules"
  15.     fi
  16. fi
  17. # End automatically added section
  18.  
  19.